package com.travel.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 订单信息实体类
 */
@Data
@NoArgsConstructor
@ApiModel(value = "OrderInfo对象", description = "订单信息表")
public class TravelOrderInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "订单ID", example = "1")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "关联旅游产品ID", example = "1001")
    private Integer productId;

    @ApiModelProperty(value = "下单用户ID", example = "10001")
    private Integer userId;

    @ApiModelProperty(value = "订单号", example = "20230615100001001")
    private String orderNo;

    @ApiModelProperty(value = "成人价格", example = "158.00", position = 3)
    private BigDecimal adultPrice;

    @ApiModelProperty(value = "小孩价格", example = "88.00", position = 4)
    private BigDecimal childPrice;


    @ApiModelProperty(value = "订单状态：0-代付款；1-待出行；3-完成等", example = "0")
    private Integer status;

    @ApiModelProperty(value = "下单时间", example = "2023-06-15 10:00:01")
    private LocalDateTime createTime;



}